<#include "../base/basic-page.ftl">
<#include "../common/table.ftl">
<#include "../common/modal.ftl">
<#include "../common/form.ftl">
<#include "../common/pagination.ftl">
<@page_head>

</@page_head>
<@page_body page_title="交易管理" side_active="/admin/trading/settlement">
    <div class="main-content container-fluid">
        <div class="row">
            <!--Responsive table-->
            <div class="col-sm-12">
                <@table_wrap "结算记录">
                <@table_tools>
                    <button class="btn btn-space btn-primary">
                        开始结算
                    </button>
                </@table_tools>
                <@table extra="table-striped table-hover">
                    <@table_head>
                        <th style="width:10%;">结算日期</th>
                        <th style="width:15%;">结算渠道</th>
                        <th style="width:5%;" class="number">平台收入</th>
                        <th style="width:5%;" class="number">结算金额</th>
                        <th style="width:5%;" class="number">订单数量</th>
                        <th style="width:10%;">操作时间</th>
                        <th style="width:10%;"></th>
                    </@table_head>
                    <@table_body>
                        <#list recordData.records as item>
                            <tr>
                                <td>
                                    ${item.rangeStart?string('yyyy年MM月dd日')}<br/>至${item.rangeEnd?string('yyyy年MM月dd日')}
                                </td>
                                <td>
                                    mm_107186047_35558541_146530882
                                </td>
                                <td class="number">
                                    ￥${item.amount?string['0.00']}元
                                </td>
                                <td class="number">
                                    ￥${item.shareAmount?string['0.00']}元
                                </td>
                                <td class="number">
                                    ${item.ordersCount}
                                </td>
                                <td class="cell-detail">
                                    <span>${item.cTime?string('yyyy年MM月dd日')}</span>
                                    <span class="cell-detail-description">${item.cTime?string('HH:mm')}</span>
                                </td>
                                <td>
                                </td>
                            </tr>
                        </#list>
                    </@table_body>
                </@table>
                    <@pagination recordData.current,recordData.size,recordData.total>
                    </@pagination>
                </@table_wrap>
            </div>
        </div>
    </div>
</@page_body>
<@page_foot>
<script src="/static/lib/parsley/parsley.min.js" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function(){
        //initialize the javascript
        var cli = new S7BuyCli();
        cli.init();
        cli.initSettlement();
    });
</script>
</@page_foot>